import Quick3DAssets.Chest as Base

import QtQuick
import QtQuick3D
import QtQuick3D.Physics
import Utils
Base.Chest{
    id:root

    IdHacker{
        property Texture texture
        property PrincipledMaterial mc_material_material
        Component.onCompleted: {
            texture.magFilter = Texture.Nearest
            mc_material_material.roughness = 1.0
        }

        target:root
    }

    Node {
        id: __materialLibrary__
    }
    StaticRigidBody{
        y:50
        InteractiveTrigger{
            type:"chest"
            descript:"使用箱子"
            host:root
            collisionShapes: BoxShape{
                extents: Qt.vector3d(120,120,120)
            }

            onTriggered: {
                console.log("使用箱子")
            }
        }
        collisionShapes: BoxShape{
            extents: Qt.vector3d(100,100,100)
        }
    }




}
